<template>
	<view :class="['vh100',{'dark':theme == 'dark'}]">

		<view class="u-content plr20 ptb10">
			<u-parse :html="content">

			</u-parse>
		</view>
	</view>
</template>

<script>
	import {
		mapState,
		mapActions,
		mapGetters
	} from 'vuex';
	import {
		commonWhiteBook
	} from '../../common/apiString.js'
	import {
		myMixins
	} from '@/common/myMixins.js' //加入全局下拉刷新
	export default {
		mixins: [myMixins],
		data() {
			return {
				list: [],
				content: ``
			}
		},
		computed: {
			...mapState({
				theme: state => state.theme
			}),
		},
		onLoad() {
			uni.setNavigationBarTitle({
				title: this.$t('bico.W613'),
			})
			this.$utils.setTheme(this.theme);
			
		},
		onShow(){
			this.getHtml()
		},
		methods: {
			getHtml() {
				this.$utils.initData({
					url: commonWhiteBook,
					data: {
						size: 100,
						language:uni.getStorageSync('lang')
					},
					type: 'post'
				}, (res, msg) => {
					//uni.stopPullDownRefresh();
					//this.list = res.records
					this.content = res.content
				})
			}
		}
	}
</script>

<style>
</style>
